#pragma once



// CDisplayView view
class CBloodleadDoc;
class CDisplayView : public CScrollView
{
	DECLARE_DYNCREATE(CDisplayView)

protected:
	CDisplayView();           // protected constructor used by dynamic creation
	virtual ~CDisplayView();

public:
	void Refresh();
	CBloodleadDoc* GetDocument() const /* non-debug version is inline */;

#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnInitialUpdate();     // first time after construct

	DECLARE_MESSAGE_MAP()

private:
	CBitmap	mBitmap;
	CDC		mDC;
	INT		mOffsetX, mOffsetY;
	BOOL	mIsInit;

	INT_PTR mBegin, mEnd;
	BOOL	mSelectFlag;
	CPoint	mMouseDownPt, mMouseUpPt;
public:
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg LRESULT OnSamplingOver( WPARAM wParam, LPARAM lParam );
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};


